<template>
  <div class="home" @click="$router.push('/about')">
    {{Data}}
  </div>
</template>

<script>
import { getNewsTop } from '@/api/article'
// @ is an alias to /src
export default {
  name: 'home',
  data () {
    return{
      Data : null
    }
  },
  created () {
    getNewsTop().then(res => {
        this.Data = res
      })
  }
}
</script>
